package com.jwaoo.mobile.test.model.db;

import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Delete;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.Query;

import com.jwaoo.mobile.test.bean.Story;

import java.util.List;

/**
 * Created by jwaoo on 2017/6/9.
 */
@Dao
public interface DBStorysDao {
    @Query("SELECT * FROM Story")
    List<Story> getStoryList();

    @Insert
    void insertAll(List<Story> list);

    @Delete
    void deleteOne(Story story);

    @Delete
    void deleteAll(List<Story> list);

}
